package cn.yunhe.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import cn.yunhe.dao.IStudentDao;
import cn.yunhe.model.Student;
import cn.yunhe.util.SqlSessionFactoryUtil;

public class StudentService {
	
	SqlSession session=SqlSessionFactoryUtil.getSqlSession();
	IStudentDao studentDao=session.getMapper(IStudentDao.class);
	
	//获取所有学生信息
	public List<Student> getAllStudent(){
		return studentDao.getAllStudent();
	}
	
}
